package org.example.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 目录表(TSysMenu)表实体类
 * @author Calvin
 */
@Setter
@Getter
@ToString
@TableName("t_sys_menu")
public class TSysMenu extends Model<TSysMenu> implements Serializable {
    public static final int TYPE_MENU = 0;  // 菜单类型
    public static final int TYPE_BTN = 1;
    //id
    private Long id;
    //菜单id
    private Long menuId;
    //上级id, 0是顶级
    private Long parentId;
    //菜单名称
    private String title;
    //菜单路由地址
    private String path;
    //菜单组件地址, 目录可为空
    private String component;
    //类型, 0菜单, 1按钮
    private Integer menuType;
    //排序号
    private Integer sortNumber;
    //权限标识
    private String authority;
    //菜单图标
    private String icon;
    //是否隐藏, 0否, 1是(仅注册路由不显示在左侧菜单)
    private Integer hide;
    //其它路由元信息
    private String meta;
    //是否删除, 0否, 1是
    private Integer deleted;
    //创建人
    private String createBy;
    //更新人
    private String updateBy;
    //创建时间
    private Date createTime;
    //修改时间
    private Date updateTime;

}

